package com.eas.web.common.chart;

import java.util.LinkedList;
import java.util.List;

import org.apache.commons.lang.StringUtils;

public class ValueArray {

    private List<ValueNode> valueList;

    public ValueArray() {
        valueList = new LinkedList<ValueNode>();
    }

    public void addValueNode(ValueNode value) {
        valueList.add(value);
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("[");
        sb.append(StringUtils.join(valueList, ","));
        sb.append("]");
        return sb.toString();
    }

    public String render() {
        return toString();
    }
}
